<?php foreach ($news as $news_item): ?>

    <div class="news_listed_item">
        <h2><?php echo $news_item['title'] ?></h2>
        <div class="main">
            <?php echo $news_item['text'] ?>
        </div>
        <p><a href="news/<?php echo $news_item['slug'] ?>">View article</a></p>
    </div>
    <br>

<?php endforeach ?>